<template>
  <div class="u-flex u-height-f">
    <div style="min-width: 210px; max-width: 210px;height: 100%">
      <u-menu></u-menu>
    </div>
    <div class="u-flex-col">
      <el-button type="primary" @click="logout">logtou</el-button>
      <RouterView/>
    </div>

  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";
import router from "../router";
import { PageEnum } from "../enums/pageEnum";
import uMenu from '/@/components/shared/u-menu.vue'

export default defineComponent({
  components: {
    uMenu
  },
  setup() {
    const logout = () => {
      router.push(PageEnum.BASE_LOGIN);
    };
    return {
      logout,
    };
  },
});
</script>

<style scoped></style>
